function This = loadobj(This)
% loadobj  [Not a public function] Prepare varobj for use in workspace and handle bkw compatibility.
%
% Backend IRIS function.
% No help provided.

% -IRIS Toolbox.
% -Copyright (c) 2007-2015 IRIS Solutions Team.

%--------------------------------------------------------------------------

try
    build = sscanf(This.Build,'%g',1);
catch
    build = 0;
end

if build < 20150218
    This.IxFitted = This.Fitted;
    This = rmfield(This,'Fitted');
end

if isstruct(This)
    This = VAR(This);
end

end
